﻿<%@ Page Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true" CodeBehind="BoardType.aspx.cs" Inherits="Mang24k99.Web.PUBC.BoardType" Title="调查表类型维护" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server">
        <asp:Button ID="btnBack" runat="server" CssClass="form_btn" Text="返回"  onclick="btnBack_Click" />
    </asp:Panel>
    <table>
        <tr>
            <td class="tb_title1">调查表名称：</td>
            <td class="tb_txt1">
                <asp:TextBox ID="txtName" runat="server" MaxLength="40" TabIndex="1"></asp:TextBox>
                <asp:TextBox ID="txtBordNO" runat="server" CssClass="hidden"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tb_title1">调查表简称：</td>
            <td class="tb_txt1">
                <asp:TextBox ID="txtAlias" runat="server" MaxLength="15" TabIndex="2"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnSave" CssClass="form_btn" runat="server" Text="保存" 
                    onclick="btnSave_Click" TabIndex="3" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnCancel" CssClass="form_btn" runat="server" Text="取消" 
                      OnClientClick="return confirm('操作未保存，确定取消吗？')" onclick="btnCancel_Click" TabIndex="4" />
            </td>
        </tr>
    </table>
    <div>
        <asp:GridView ID="grdList" runat="server"  AutoGenerateColumns="False" 
            Width="100%" onrowcommand="grdList_RowCommand">
            <HeaderStyle CssClass="tb_title2" />
            <RowStyle CssClass="tb_txt2" />
             <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%#Container.DataItemIndex+1%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="BoardNO" HeaderText="调查表编号" />
                <asp:BoundField DataField="BoardName" HeaderText="调查表名称" />
                <asp:BoundField DataField="BoardAlias" HeaderText="简称" />
                <asp:BoundField DataField="CycNum" HeaderText="周期数" />
                <asp:TemplateField HeaderText="维护周期">
                    <ItemTemplate>
                        <a href="BoardCyc.aspx?no=<%# Eval("BoardNO")%>">维护周期</a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="编辑">
                    <ItemTemplate>
                        <asp:LinkButton ID="lkbtnEdit" runat="server" CommandName="Modi" 
                            CommandArgument='<%# Eval("BoardNO")%>'>编辑
                        </asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:LinkButton ID="lkbtnDel" runat="server" CommandName="Del"  CommandArgument='<%# Eval("BoardNO")%>' 
                            OnClientClick="return confirm('你将同时删除该类型下所有数据，确定要删除吗？')">删除
                        </asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
